<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
	<ul class="nav nav-tabs">
		<li><a href="{:url('AdminTag/index')}"> 公告管理</a></li>
		<li class="active"><a href="{:url('AdminTag/add')}"> 添加公告</a></li>
		<!--<li><a  href="{:url('nav/edit')}" >{:lang('ADMIN_NAV_EDIT')}</a></li>-->
	</ul>
	<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('AdminTag/editPost')}">

		<div class="form-group">
			<input id="post-id" type="hidden" name="post[id]" value="{$post.id}">
			<label class="col-sm-2 control-label"><span class="form-required">*</span>公告标题:</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" class="form-control" name="post[name]"   value="{$post['name']}" placeholder="请输入">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="form-required">*</span>公告内容:</label>
			<div class="col-md-6 col-sm-10">
			 <textarea  name="post[content]"   cols="70%"  rows="10" value="{$post['content']}" >{$post['content']}</textarea>
			</div>
		</div>
		
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
			<a class="btn btn-default" href="__URL__">返回</a>
		</div>
	</form>

</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>